package me.shiqiang.im.dao;

import me.shiqiang.im.domain.User;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

/**
 * @author cuishiqiang
 * @date 2017/12/8 下午3:53
 */
@Repository
public interface UserDao extends CrudRepository<User,Long>{

    User findByPhone(String phone);

    User findByPhoneAndPwd(String phone,String pwd);
}
